﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NotaCreditoOPT1Form.aspx.cs" 
Inherits="UILGestion.ObraAdmin.RecepcionDoc.NotaCreditoOPT1Form" %>

<%@ Register Assembly="SesarchResultLib" Namespace="SesarchResultLib" TagPrefix="cc1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="~/Control/menuObraCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc1" %>

<%@ Register src="FacturaSelecGrid.ascx" tagname="FacturaSelecGrid" tagprefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
        <link href="../../css/main.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
</head>
<body>
    <form id="form1" runat="server"  >
   
    <asp:ToolkitScriptManager runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true">
    </asp:ToolkitScriptManager>
    <uc1:menuObraCtrl ID="menuObraCtrl1" runat="server"   />

    <input id="idObra" type="hidden" runat="server" /> 
    <input id="idmotivo" type="hidden" runat="server" /> 
    
  <asp:Panel ID="pnlMain" runat="server" 
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  
                 <asp:Label ID="Label1" runat="server" Text="SELECCIONE FACTURA:" 
                         style="font-size: large; color: #960818"></asp:Label>


</asp:Panel>
 
 



      
  <asp:Panel ID="OrdenCompraPendRecepDocumentoPanel" runat="server"    
  
    Visible="false"
  BackColor="White"
>
  
       
        <table >
            <tr>
                <td align="right">
                    Tipo Doc:</td>
                <td>
                    <asp:DropDownList ID="tipoDocumentoDDL" runat="server" Width="200px" Enabled="false">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    Num. Factura:</td>
                <td>
                    <asp:TextBox ID="codigoTXT" runat="server" Width="150px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    RUC/PROVEEDOR:</td>
                <td width="300px">
                    <asp:TextBox ID="proveedortxt" runat="server" Width="300px"></asp:TextBox>
                </td>
                <td>
                    <asp:ImageButton ID="buscarBTN" runat="server" ImageUrl="../../Images/find.png" 
                        ToolTip="Buscar Documento" />
                </td>
            </tr>
        </table>
  
      
        <hr />
    

        <asp:UpdatePanel runat="server" ID="UpdatePanelOCRecep" UpdateMode="Conditional"  >
       <ContentTemplate>
            <uc3:FacturaSelecGrid ID="FacturaSelecGrid2" runat="server" DataSourceID="facturaODS"/>
         
           <asp:ObjectDataSource ID="facturaODS" runat="server" EnablePaging="True" 
               SelectCountMethod="Count" SelectMethod="GetRecepcionDocList" 
               SortParameterName="sortExpression" TypeName="BOL.RecepcionDocBL">
               <SelectParameters>
                  <asp:querystringparameter  Name="idObra" Type="Int32" querystringfield="idObra"  />
                <asp:ControlParameter Name="numDocumento" Type="String"   ControlID="codigoTXT"   />
                <asp:ControlParameter Name="tipoDocumento" Type="Int32"   ControlID="tipoDocumentoDDL"   />
                <asp:ControlParameter Name="proveedor" Type="String" ControlID="proveedortxt"  />
                
                   <asp:Parameter Name="startRowIndex" Type="Int32" />
                   <asp:Parameter Name="maximumRows" Type="Int32" />
                   <asp:Parameter Name="sortExpression" Type="String" />
               </SelectParameters>
           </asp:ObjectDataSource>

       </ContentTemplate>
       <Triggers>
       <asp:AsyncPostBackTrigger ControlID="buscarBTN" />
       </Triggers>
       </asp:UpdatePanel>
       </asp:Panel>
    
   
  

    </form>
 
</body>
</html>
